package com.zou.mall.auth.feign;

import com.zou.common.utils.R;
import com.zou.mall.auth.feign.fallback.MemberFallbackServiceFallBack;
import com.zou.mall.auth.vo.LoginVO;
import com.zou.mall.auth.vo.RegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient(value = "mall-member", fallback = MemberFallbackServiceFallBack.class)
public interface MemberFeignService {

    @RequestMapping("member/member/register")
    R register(@RequestBody RegisterVO registerVo);


    @RequestMapping("member/member/login")
    R login(@RequestBody LoginVO loginVO);
}
